package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.PromotionsDao;
import com.windfone.model.Promotions;
import com.windfone.service.PromotionsService;

public class PromotionsServiceImpl implements PromotionsService {
	private PromotionsDao  promotionsDao;
	public PromotionsDao getPromotionsDao() {
		return promotionsDao;
	}

	public void setPromotionsDao(PromotionsDao promotionsDao) {
		this.promotionsDao = promotionsDao;
	}

	public int deletePromotions(int keyValue) {
		return promotionsDao.deletePromotions(keyValue);
	}

	public int getAllRecorderNumber() {
		return promotionsDao.getAllRecorderNumber();
	}

	public int updatePromotions(Promotions bean) {
		return promotionsDao.updatePromotions(bean);
	}

	public int insertPromotions(Promotions bean) {
		return promotionsDao.insertPromotions(bean);
	}

	public List<Promotions> getPromotionsById(int keyValue) {
		return promotionsDao.getPromotionsById(keyValue);
	}

	public List<Promotions> getAllPromotions(int beginRecord) {
		return promotionsDao.getAllPromotions(beginRecord);
	}

}
